package threadTest;

public class TestMain {
    static int num = 0;
    synchronized static void add(){
        System.out.println(Thread.currentThread().getName()+ ":"+num++);
    }
}
